/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Agencies Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20669 (C-0-T19465-S20669-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getAgenciesProviderCodes()
 * @model extendedMetaData="name='AgenciesProviderCodes'"
 * @generated
 */
public enum AgenciesProviderCodes implements Enumerator {
	/**
	 * The '<em><b>250000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_250000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_250000000X(0, "_250000000X", "250000000X"),

	/**
	 * The '<em><b>251B00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251B00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251B00000X(1, "_251B00000X", "251B00000X"),

	/**
	 * The '<em><b>251C00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251C00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251C00000X(2, "_251C00000X", "251C00000X"),

	/**
	 * The '<em><b>251E00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251E00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251E00000X(3, "_251E00000X", "251E00000X"),

	/**
	 * The '<em><b>251F00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251F00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251F00000X(4, "_251F00000X", "251F00000X"),

	/**
	 * The '<em><b>251G00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251G00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251G00000X(5, "_251G00000X", "251G00000X"),

	/**
	 * The '<em><b>251J00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251J00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251J00000X(6, "_251J00000X", "251J00000X"),

	/**
	 * The '<em><b>251K00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251K00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251K00000X(7, "_251K00000X", "251K00000X"),

	/**
	 * The '<em><b>251V00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_251V00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_251V00000X(8, "_251V00000X", "251V00000X");

	/**
	 * The '<em><b>250000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>250000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_250000000X
	 * @model literal="250000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _250000000X_VALUE = 0;

	/**
	 * The '<em><b>251B00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251B00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251B00000X
	 * @model literal="251B00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251B00000X_VALUE = 1;

	/**
	 * The '<em><b>251C00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251C00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251C00000X
	 * @model literal="251C00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251C00000X_VALUE = 2;

	/**
	 * The '<em><b>251E00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251E00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251E00000X
	 * @model literal="251E00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251E00000X_VALUE = 3;

	/**
	 * The '<em><b>251F00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251F00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251F00000X
	 * @model literal="251F00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251F00000X_VALUE = 4;

	/**
	 * The '<em><b>251G00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251G00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251G00000X
	 * @model literal="251G00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251G00000X_VALUE = 5;

	/**
	 * The '<em><b>251J00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251J00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251J00000X
	 * @model literal="251J00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251J00000X_VALUE = 6;

	/**
	 * The '<em><b>251K00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251K00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251K00000X
	 * @model literal="251K00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251K00000X_VALUE = 7;

	/**
	 * The '<em><b>251V00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>251V00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_251V00000X
	 * @model literal="251V00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _251V00000X_VALUE = 8;

	/**
	 * An array of all the '<em><b>Agencies Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final AgenciesProviderCodes[] VALUES_ARRAY =
		new AgenciesProviderCodes[] {
			_250000000X,
			_251B00000X,
			_251C00000X,
			_251E00000X,
			_251F00000X,
			_251G00000X,
			_251J00000X,
			_251K00000X,
			_251V00000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Agencies Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<AgenciesProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Agencies Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AgenciesProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AgenciesProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Agencies Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AgenciesProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AgenciesProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Agencies Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AgenciesProviderCodes get(int value) {
		switch (value) {
			case _250000000X_VALUE: return _250000000X;
			case _251B00000X_VALUE: return _251B00000X;
			case _251C00000X_VALUE: return _251C00000X;
			case _251E00000X_VALUE: return _251E00000X;
			case _251F00000X_VALUE: return _251F00000X;
			case _251G00000X_VALUE: return _251G00000X;
			case _251J00000X_VALUE: return _251J00000X;
			case _251K00000X_VALUE: return _251K00000X;
			case _251V00000X_VALUE: return _251V00000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private AgenciesProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //AgenciesProviderCodes
